﻿{include file="Public/header" /}
<style>
	.am-dropdown{
		width: 100%;
		margin-left: 30px;
		margin-bottom: 10px;
	}
	.am-dropdown div{
		color: #000;
	}
</style>
<form method="post" class="form-x" action="{if $data.id}?id={$data.id}{/if}" style="overflow: hidden">
	<div class="panel admin-panel" style="background: #fff">
		<br>
		<script>
            //city canshu
            var pid='{$data.pid}';
            var cid='{$data.cid}';
            var aid='{$data.aid}';
            var selectc=true;
            var selecta=true;
		</script>
		<div class="am-dropdown">
			<div class="label">
				<label>{:lang('currency')['city']}</label>
			</div>
			<div class="field">
				{include file="public/city" /}
			</div>
		</div>
		<div class="am-dropdown">
			<div class="label">
				<label for="phone">{:lang('label')['phone']}</label>
			</div>
			<div class="field">
				<input type="text" class="input input-auto" id="phone" name="phone" value="{$data.phone}" size="80" placeholder="{:lang('label')['phone']}" data-validate="required:{:lang('currency')['required']}" />
			</div>
		</div>
		<div class="am-dropdown">
			<div class="label">
				<label for="password">{:lang('label')['password']}</label>
			</div>
			<div class="field">
				<input type="text" class="input input-auto" id="password" name="password" value="" size="80" placeholder="{:lang('label')['password']}" {if !$data.id}data-validate="required:{:lang('currency')['required']}"{/if} />
			</div>
		</div>
		<div class="am-dropdown">
		<div class="input-inline clearfix">
			<div class="label">
				<label for="headimg">{:lang('label')['headimg']}</label>
			</div>
			<div class="field">
				<input type="text" readonly class="input input-auto" id="headimg" name="headimg" value="{$data.headimg}" size="65" placeholder="{:lang('label')['headimg']}" data-validate="required:{:lang('currency')['required']}" />
				<span class="addbtn"><button type="button" data-id="headimg" class="button upload">{:lang('form')['file']}</button></span>
			</div>
		</div>
		</div>
		<div class="am-dropdown">
			<div class="label">
				<label>{:lang('label')['status']}</label>
			</div>
			<div class="field">
				<div class="am-form-group">
					<label class="am-radio-inline">
						<input name="status" value="1" {if $data.status == "1" || !$data.status}checked="checked"{/if} type="radio">{:lang('currency')['status_1']}
					</label>
					<label class="am-radio-inline">
						<input name="status" value="2" {if $data.status == "2"}checked="checked"{/if} type="radio">{:lang('currency')['status_2']}
					</label>
				</div>
			</div>
		</div>
		<div class="am-dropdown">
			<button class="button bg-main" type="submit">{:lang('form')['submit']}</button>
		</div>
		<br/>
	</div>
</form>
{include file="Main/menu_footer" /}